{  Statement: http://acmp.ru/?main=task&id_task=276
   Verdict: Accepted
}
uses
    SysUtils, Math;

var
    i,n,k,tt,kk,ii:longint;

begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n, k);
kk := n div k;
tt := n mod k;
ii := k - tt;
for i:=1 to ii do
    write(kk,' ');
for i := ii + 1 to k do
    write(kk + 1,' ');
end.